package cn.jarlen.jwt.tools.menu;

import android.content.Context;
import android.widget.Toast;

import cn.jarlen.jwt.tools.device.DeviceUtils;
import cn.jarlen.jwt.tools.utils.LittleUtils;

/**
 * @author jarlen
 * Create by 2023/9/14 15:33
 */
public class IMSIRead implements IMenuProcess {

    @Override
    public void onExecute(Context context) {
        String imsiByAndroidApi = DeviceUtils.getIMSIByAndroidApi(context);
        String imsiByPolicyManager = DeviceUtils.getIMSIByPolicyManager(context);

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("【查询IMSI】").append("\n");
        stringBuilder.append("原生:").append(LittleUtils.checkEmpty(imsiByAndroidApi)).append("\n");
        stringBuilder.append("JW部标:").append(LittleUtils.checkEmpty(imsiByPolicyManager));

        Toast.makeText(context, stringBuilder, Toast.LENGTH_LONG).show();
    }
}
